package com.ljx.recruitment.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ljx.recruitment.user.domain.entity.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper extends BaseMapper<Permission> {
    List<Long> getPermissionByUserId(@Param("roleIds") List<Long> roleIds);

    void allocationToRole(@Param("roleId") Long roleId, @Param("list") List<Long> permissionIds);

    void deleteRolePermission(Long roleId);
}
